<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue引入</title>
</head>
<body>
    <div id="app"></div>
    <script src="../lib/vue.js"></script>
    <script>F
        const app = Vue.createApp({
            //展示一个数据
            //使用v-for展示迭代对象中的数据：在vue中in与of是一样的F
             template:`<h2>{{message}}</h2>
             <ul><li v-for="item in movies">{{item}}</li></ul>`,
             data: function()
             {
                return {
                    message:"hello vue3",
                    movies:["大话西游","哆啦A梦","星际穿越"]
                 }
             },
        })
        app.mount("#app");
    </script>
</body>
</html>